package day1702;

public class xcal2 extends Thread{
    private String name;

    public xcal2() {
    }

    public xcal2(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for(int i =0;i<200;i++){
            try {
                xcal2.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(this.getName()+"  "+name+"  "+i);
        }
    }
}
